/*
 * @Date         : 2022-07-21 19:19:15
 * @LastEditors  : zu1662
 * @LastEditTime : 2024-05-24 14:47:02
 * @Description  : Oss基础类
 *
 * Copyright © 2022 by zu1662, All Rights Reserved.
 */
import { OssInfo } from './oss.interface';
export abstract class OssClient {
  config: OssInfo;
  ossClient: any;

  constructor(config: OssInfo) {
    this.config = config;
  }

  abstract putFile(
    filename: string,
    buffer: string | Uint8Array | Buffer | ReadableStream | Blob,
    options?: object
  ): Promise<string>;
  abstract deleteFile(filename: string): Promise<boolean>;
  abstract deleteFiles(filenames: string[]): Promise<boolean>;
}
